<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"
	href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
	$(function() {
		var icons = {
			header : "ui-icon-circle-arrow-e",
			activeHeader : "ui-icon-circle-arrow-s"
		};
		$("#accordion").accordion({
			icons : icons
		});
		$("#toggle").button().click(function() {
			if ($("#accordion").accordion("option", "icons")) {
				$("#accordion").accordion("option", "icons", null);
			} else {
				$("#accordion").accordion("option", "icons", icons);
			}
		});
	});
</script>
</head>
<body>
	<div id="accordion">
		<h3>Section 1</h3>
		<div>
			<p>자,여기는 세션1 입니다. 아무거나~ 입력</p>
			<a href="">메인으로</a>
		</div>
		<h3>Section 2</h3>
		<div>
			<p>자, 여기는 세션 2입니다.ㅋㅋㅋㅋ</p>
		</div>
		<h3>Section 3</h3>
		<div>
			<p>여기는 세션3이고요~</p>
			<ul>
				<li>아이템1</li>
				<li>아이템2</li>
				<li>아이템3</li>
			</ul>
		</div>
		<h3>Section 4</h3>
		<div>
			<p>여기는 세션4입니다.</p>
			<p>그냥 결과만 보세요.</p>
		</div>
	</div>
	<button id="toggle">Toggle icons</button>
</body>
</html>